package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 系统公告信息对象 sys_notice
 *
 * @author yfkj
 * @date 2021-10-12
 */
@Data
@AllArgsConstructor
public class SysNotice extends com.ruoyi.common.core.web.domain.BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 系统公告信息主键 */
    @TableField(exist = true)
    @ApiModelProperty(value =  "${comment}")
    private Long noticeId;
    /** 公告标题 */
    @com.ruoyi.common.core.annotation.Excel(name = "公告标题")
    @TableField(exist = true)
    @ApiModelProperty(value =  "公告标题")
    private String noticeTitle;
    /** 公告类型（1通知 2公告） */
    @com.ruoyi.common.core.annotation.Excel(name = "公告类型", readConverterExp = "1=通知,2=公告")
    @TableField(exist = true)
    @ApiModelProperty(value =  "公告类型")
    private Integer noticeType;
    /** 公告内容 */
    @com.ruoyi.common.core.annotation.Excel(name = "公告内容")
    @TableField(exist = true)
    @ApiModelProperty(value =  "公告内容")
    private String noticeContent;
    /** 公告状态（0正常 1关闭） */
    @com.ruoyi.common.core.annotation.Excel(name = "公告状态", readConverterExp = "0=正常,1=关闭")
    @TableField(exist = true)
    @ApiModelProperty(value =  "公告状态")
    private Integer status;
    /** 通知给谁 */
    @com.ruoyi.common.core.annotation.Excel(name = "通知给谁")
    @TableField(exist = true)
    @ApiModelProperty(value =  "通知给谁")
    private Long toUserId;
    /** 是否已阅（1是，0否） */
    @com.ruoyi.common.core.annotation.Excel(name = "是否已阅", readConverterExp = "1=是，0否")
    @TableField(exist = true)
    @ApiModelProperty(value =  "是否已阅")
    private Integer isRead;
    /** 通知查看时间 */
    @com.ruoyi.common.core.annotation.Excel(name = "通知查看时间")
    @TableField(exist = true)
    @ApiModelProperty(value =  "通知查看时间")
    private Long readTime;
    /** 是否发送成功（1是，0否） */
    @com.ruoyi.common.core.annotation.Excel(name = "是否发送成功", readConverterExp = "1=是，0否")
    @TableField(exist = true)
    @ApiModelProperty(value =  "是否发送成功")
    private Integer isTo;
    public static final String NOTICE_ID="notice_id";
    public static final String NOTICE_TITLE="notice_title";
    public static final String NOTICE_TYPE="notice_type";
    public static final String NOTICE_CONTENT="notice_content";
    public static final String STATUS="status";
    public static final String REMARK="remark";
    public static final String CREATE_BY="create_by";
    public static final String CREATE_TIME="create_time";
    public static final String UPDATE_BY="update_by";
    public static final String UPDATE_TIME="update_time";
    public static final String TO_USER_ID="to_user_id";
    public static final String IS_READ="is_read";
    public static final String READ_TIME="read_time";
    public static final String IS_TO="is_to";
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("noticeId", getNoticeId())
                .append("noticeTitle", getNoticeTitle())
                .append("noticeType", getNoticeType())
                .append("noticeContent", getNoticeContent())
                .append("status", getStatus())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("toUserId", getToUserId())
                .append("isRead", getIsRead())
                .append("readTime", getReadTime())
                .append("isTo", getIsTo())
                .toString();
    }
}
